package labReport.experiment1;

class Item {
    private String name;
    private double size;
    private double price;
    private String configuration;
    private int stock;

    public Item(String name, double size, double price, String configuration, int stock) {
        this.name = name;
        this.size = size;
        this.price = price;
        this.configuration = configuration;
        this.stock = stock;
    }

    void show() {
        System.out.println(name + "\t" + size + "\t" + price + "\t" + configuration + "\t" + stock);
    }
}

public class StoreList {
    public static void main(String[] args) {
        Item item_1 = new Item("MacBookAir", 13.3, 6988.88, "i5处理器4GB内存128G固态硬盘", 5);
        Item item_2 = new Item("ThinkPadT450", 14.0, 5999.99, "i5处理器4GB内存500G硬盘", 10);
        Item item_3 = new Item("ASUS-FL5800", 15.6, 4999.5, "i7处理器4GB内存128G固态硬盘", 18);
        System.out.println("品牌型号\t\t尺寸\t\t价格\t\t配置\t\t\t\t\t\t\t库存数");
        item_1.show();
        item_2.show();
        item_3.show();
    }
}
